.class public Lde/innosystec/unrar/rarfile/g;
.super Lde/innosystec/unrar/rarfile/c;
.source "FileHeader.java"


# instance fields
.field private j:I

.field private k:Lde/innosystec/unrar/rarfile/HostSystem;

.field private l:I

.field private m:I

.field private n:B

.field private o:B

.field private p:S

.field private q:I

.field private r:I

.field private s:[B

.field private t:Ljava/lang/String;

.field private u:Ljava/lang/String;

.field private v:[B

.field private w:[B

.field private x:Ljava/util/Date;

.field private y:J

.field private z:J


# direct methods
.method public constructor <init>(Lde/innosystec/unrar/rarfile/c;[BLes/vo0;)V
    .locals 8

    .line 1
    invoke-direct {p0, p1}, Lde/innosystec/unrar/rarfile/c;-><init>(Lde/innosystec/unrar/rarfile/c;)V

    .line 2
    const-class p1, Lde/innosystec/unrar/rarfile/g;

    invoke-virtual {p1}, Ljava/lang/Class;->getName()Ljava/lang/String;

    move-result-object p1

    invoke-static {p1}, Lorg/apache/commons/logging/LogFactory;->getLog(Ljava/lang/String;)Lorg/apache/commons/logging/Log;

    const/16 p1, 0x8

    new-array v0, p1, [B

    .line 3
    iput-object v0, p0, Lde/innosystec/unrar/rarfile/g;->w:[B

    const/4 v0, 0x0

    .line 4
    invoke-static {p2, v0}, Les/ap0;->b([BI)I

    move-result v1

    iput v1, p0, Lde/innosystec/unrar/rarfile/g;->j:I

    const/4 v1, 0x4

    .line 5
    aget-byte v1, p2, v1

    invoke-static {v1}, Lde/innosystec/unrar/rarfile/HostSystem;->findHostSystem(B)Lde/innosystec/unrar/rarfile/HostSystem;

    move-result-object v1

    iput-object v1, p0, Lde/innosystec/unrar/rarfile/g;->k:Lde/innosystec/unrar/rarfile/HostSystem;

    const/4 v1, 0x5

    .line 6
    invoke-static {p2, v1}, Les/ap0;->b([BI)I

    move-result v1

    iput v1, p0, Lde/innosystec/unrar/rarfile/g;->l:I

    const/16 v1, 0x9

    .line 7
    invoke-static {p2, v1}, Les/ap0;->b([BI)I

    move-result v2

    iput v2, p0, Lde/innosystec/unrar/rarfile/g;->m:I

    .line 8
    iget-byte v2, p0, Lde/innosystec/unrar/rarfile/g;->n:B

    const/16 v3, 0xd

    aget-byte v3, p2, v3

    and-int/lit16 v3, v3, 0xff

    or-int/2addr v2, v3

    int-to-byte v2, v2

    iput-byte v2, p0, Lde/innosystec/unrar/rarfile/g;->n:B

    .line 9
    iget-byte v2, p0, Lde/innosystec/unrar/rarfile/g;->o:B

    const/16 v3, 0xe

    aget-byte v3, p2, v3

    and-int/lit16 v3, v3, 0xff

    or-int/2addr v2, v3

    int-to-byte v2, v2

    iput-byte v2, p0, Lde/innosystec/unrar/rarfile/g;->o:B

    const/16 v2, 0xf

    .line 10
    invoke-static {p2, v2}, Les/ap0;->c([BI)S

    move-result v2

    iput-short v2, p0, Lde/innosystec/unrar/rarfile/g;->p:S

    const/16 v2, 0x11

    .line 11
    invoke-static {p2, v2}, Les/ap0;->b([BI)I

    .line 12
    invoke-virtual {p0}, Lde/innosystec/unrar/rarfile/g;->w()Z

    move-result v2

    const/16 v3, 0x15

    if-eqz v2, :cond_0

    .line 13
    invoke-static {p2, v3}, Les/ap0;->b([BI)I

    move-result v2

    iput v2, p0, Lde/innosystec/unrar/rarfile/g;->q:I

    const/16 v2, 0x19

    .line 14
    invoke-static {p2, v2}, Les/ap0;->b([BI)I

    move-result v2

    iput v2, p0, Lde/innosystec/unrar/rarfile/g;->r:I

    const/16 v3, 0x1d

    goto :goto_0

    .line 15
    :cond_0
    iput v0, p0, Lde/innosystec/unrar/rarfile/g;->q:I

    .line 16
    iput v0, p0, Lde/innosystec/unrar/rarfile/g;->r:I

    .line 17
    iget v2, p0, Lde/innosystec/unrar/rarfile/g;->j:I

    const/4 v4, -0x1

    if-ne v2, v4, :cond_1

    .line 18
    iput v4, p0, Lde/innosystec/unrar/rarfile/g;->j:I

    const v2, 0x7fffffff

    .line 19
    iput v2, p0, Lde/innosystec/unrar/rarfile/g;->r:I

    .line 20
    :cond_1
    :goto_0
    iget-wide v4, p0, Lde/innosystec/unrar/rarfile/g;->y:J

    iget v2, p0, Lde/innosystec/unrar/rarfile/g;->q:I

    int-to-long v6, v2

    or-long/2addr v4, v6

    iput-wide v4, p0, Lde/innosystec/unrar/rarfile/g;->y:J

    const/16 v2, 0x20

    shl-long/2addr v4, v2

    .line 21
    iput-wide v4, p0, Lde/innosystec/unrar/rarfile/g;->y:J

    .line 22
    invoke-virtual {p0}, Lde/innosystec/unrar/rarfile/c;->k()I

    move-result v6

    int-to-long v6, v6

    or-long/2addr v4, v6

    iput-wide v4, p0, Lde/innosystec/unrar/rarfile/g;->y:J

    .line 23
    iget-wide v4, p0, Lde/innosystec/unrar/rarfile/g;->z:J

    iget v6, p0, Lde/innosystec/unrar/rarfile/g;->r:I

    int-to-long v6, v6

    or-long/2addr v4, v6

    iput-wide v4, p0, Lde/innosystec/unrar/rarfile/g;->z:J

    shl-long/2addr v4, v2

    .line 24
    iput-wide v4, p0, Lde/innosystec/unrar/rarfile/g;->z:J

    .line 25
    iget v6, p0, Lde/innosystec/unrar/rarfile/g;->j:I

    int-to-long v6, v6

    or-long/2addr v4, v6

    iput-wide v4, p0, Lde/innosystec/unrar/rarfile/g;->z:J

    .line 26
    iget-short v4, p0, Lde/innosystec/unrar/rarfile/g;->p:S

    const/16 v5, 0x1000

    if-le v4, v5, :cond_2

    const/16 v4, 0x1000

    :cond_2
    iput-short v4, p0, Lde/innosystec/unrar/rarfile/g;->p:S

    .line 27
    new-array v4, v4, [B

    iput-object v4, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    const/4 v4, 0x0

    .line 28
    :goto_1
    iget-short v5, p0, Lde/innosystec/unrar/rarfile/g;->p:S

    if-ge v4, v5, :cond_3

    .line 29
    iget-object v5, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    aget-byte v6, p2, v3

    aput-byte v6, v5, v4

    add-int/lit8 v3, v3, 0x1

    add-int/lit8 v4, v4, 0x1

    goto :goto_1

    .line 30
    :cond_3
    invoke-virtual {p0}, Lde/innosystec/unrar/rarfile/g;->v()Z

    move-result v4

    if-eqz v4, :cond_9

    .line 31
    invoke-virtual {p0}, Lde/innosystec/unrar/rarfile/g;->A()Z

    move-result v4

    if-eqz v4, :cond_7

    const-string v4, ""

    .line 32
    iput-object v4, p0, Lde/innosystec/unrar/rarfile/g;->t:Ljava/lang/String;

    .line 33
    iput-object v4, p0, Lde/innosystec/unrar/rarfile/g;->u:Ljava/lang/String;

    const/4 v4, 0x0

    .line 34
    :goto_2
    iget-object v5, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    array-length v6, v5

    if-ge v4, v6, :cond_4

    aget-byte v5, v5, v4

    if-eqz v5, :cond_4

    add-int/lit8 v4, v4, 0x1

    goto :goto_2

    .line 35
    :cond_4
    new-array v5, v4, [B

    .line 36
    iget-object v6, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    invoke-static {v6, v0, v5, v0, v4}, Ljava/lang/System;->arraycopy(Ljava/lang/Object;ILjava/lang/Object;II)V

    .line 37
    :try_start_0
    invoke-virtual {p3}, Les/vo0;->n()Z

    move-result v6

    if-eqz v6, :cond_5

    .line 38
    invoke-static {v5, v4}, Lcom/estrongs/android/util/f;->a([BI)Ljava/lang/String;

    move-result-object v6

    .line 39
    invoke-static {v6}, Ljava/nio/charset/Charset;->isSupported(Ljava/lang/String;)Z

    move-result v7

    if-eqz v7, :cond_5

    .line 40
    invoke-virtual {p3, v6}, Les/vo0;->a(Ljava/lang/String;)V

    .line 41
    :cond_5
    new-instance v6, Ljava/lang/String;

    invoke-virtual {p3}, Les/vo0;->b()Ljava/lang/String;

    move-result-object p3

    invoke-direct {v6, v5, p3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    iput-object v6, p0, Lde/innosystec/unrar/rarfile/g;->t:Ljava/lang/String;
    :try_end_0
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_3

    .line 42
    :catch_0
    new-instance p3, Ljava/lang/String;

    invoke-direct {p3, v5}, Ljava/lang/String;-><init>([B)V

    iput-object p3, p0, Lde/innosystec/unrar/rarfile/g;->t:Ljava/lang/String;

    .line 43
    :goto_3
    iget-short p3, p0, Lde/innosystec/unrar/rarfile/g;->p:S

    if-eq v4, p3, :cond_6

    add-int/lit8 v4, v4, 0x1

    .line 44
    iget-object p3, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    invoke-static {p3, v4}, Lde/innosystec/unrar/rarfile/h;->a([BI)Ljava/lang/String;

    move-result-object p3

    iput-object p3, p0, Lde/innosystec/unrar/rarfile/g;->u:Ljava/lang/String;

    goto :goto_5

    .line 45
    :cond_6
    iget-object p3, p0, Lde/innosystec/unrar/rarfile/g;->t:Ljava/lang/String;

    iput-object p3, p0, Lde/innosystec/unrar/rarfile/g;->u:Ljava/lang/String;

    goto :goto_5

    .line 46
    :cond_7
    :try_start_1
    invoke-virtual {p3}, Les/vo0;->n()Z

    move-result v4

    if-eqz v4, :cond_8

    .line 47
    iget-object v4, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    iget-object v5, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    array-length v5, v5

    invoke-static {v4, v5}, Lcom/estrongs/android/util/f;->a([BI)Ljava/lang/String;

    move-result-object v4

    .line 48
    invoke-static {v4}, Ljava/nio/charset/Charset;->isSupported(Ljava/lang/String;)Z

    move-result v5

    if-eqz v5, :cond_8

    .line 49
    invoke-virtual {p3, v4}, Les/vo0;->a(Ljava/lang/String;)V

    .line 50
    :cond_8
    new-instance v4, Ljava/lang/String;

    iget-object v5, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    invoke-virtual {p3}, Les/vo0;->b()Ljava/lang/String;

    move-result-object p3

    invoke-direct {v4, v5, p3}, Ljava/lang/String;-><init>([BLjava/lang/String;)V

    iput-object v4, p0, Lde/innosystec/unrar/rarfile/g;->t:Ljava/lang/String;
    :try_end_1
    .catch Ljava/io/UnsupportedEncodingException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_4

    .line 51
    :catch_1
    new-instance p3, Ljava/lang/String;

    iget-object v4, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    invoke-direct {p3, v4}, Ljava/lang/String;-><init>([B)V

    iput-object p3, p0, Lde/innosystec/unrar/rarfile/g;->t:Ljava/lang/String;

    .line 52
    :goto_4
    iget-object p3, p0, Lde/innosystec/unrar/rarfile/g;->t:Ljava/lang/String;

    iput-object p3, p0, Lde/innosystec/unrar/rarfile/g;->u:Ljava/lang/String;

    .line 53
    :cond_9
    :goto_5
    iget-object p3, p0, Lde/innosystec/unrar/rarfile/g;->u:Ljava/lang/String;

    if-eqz p3, :cond_a

    const-string v4, "\\?"

    const-string v5, " "

    .line 54
    invoke-virtual {p3, v4, v5}, Ljava/lang/String;->replaceAll(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object p3

    iput-object p3, p0, Lde/innosystec/unrar/rarfile/g;->u:Ljava/lang/String;

    .line 55
    :cond_a
    sget-object p3, Lde/innosystec/unrar/rarfile/UnrarHeadertype;->NewSubHeader:Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    iget-byte v4, p0, Lde/innosystec/unrar/rarfile/b;->d:B

    invoke-virtual {p3, v4}, Lde/innosystec/unrar/rarfile/UnrarHeadertype;->equals(B)Z

    move-result p3

    if-eqz p3, :cond_d

    .line 56
    iget-short p3, p0, Lde/innosystec/unrar/rarfile/b;->f:S

    sub-int/2addr p3, v2

    iget-short v2, p0, Lde/innosystec/unrar/rarfile/g;->p:S

    sub-int/2addr p3, v2

    .line 57
    invoke-virtual {p0}, Lde/innosystec/unrar/rarfile/g;->s()Z

    move-result v2

    if-eqz v2, :cond_b

    add-int/lit8 p3, p3, -0x8

    :cond_b
    if-lez p3, :cond_c

    .line 58
    new-array v2, p3, [B

    iput-object v2, p0, Lde/innosystec/unrar/rarfile/g;->v:[B

    const/4 v2, 0x0

    :goto_6
    if-ge v2, p3, :cond_c

    .line 59
    iget-object v4, p0, Lde/innosystec/unrar/rarfile/g;->v:[B

    aget-byte v5, p2, v3

    aput-byte v5, v4, v2

    add-int/lit8 v3, v3, 0x1

    add-int/lit8 v2, v2, 0x1

    goto :goto_6

    .line 60
    :cond_c
    sget-object p3, Lde/innosystec/unrar/rarfile/m;->b:Lde/innosystec/unrar/rarfile/m;

    iget-object v2, p0, Lde/innosystec/unrar/rarfile/g;->s:[B

    invoke-virtual {p3, v2}, Lde/innosystec/unrar/rarfile/m;->a([B)Z

    move-result p3

    if-eqz p3, :cond_d

    .line 61
    iget-object p3, p0, Lde/innosystec/unrar/rarfile/g;->v:[B

    aget-byte v2, p3, p1

    aget-byte v1, p3, v1

    const/16 v1, 0xa

    aget-byte v1, p3, v1

    const/16 v1, 0xb

    aget-byte p3, p3, v1

    .line 62
    :cond_d
    invoke-virtual {p0}, Lde/innosystec/unrar/rarfile/g;->s()Z

    move-result p3

    if-eqz p3, :cond_e

    :goto_7
    if-ge v0, p1, :cond_e

    .line 63
    iget-object p3, p0, Lde/innosystec/unrar/rarfile/g;->w:[B

    aget-byte v1, p2, v3

    aput-byte v1, p3, v0

    add-int/lit8 v3, v3, 0x1

    add-int/lit8 v0, v0, 0x1

    goto :goto_7

    .line 64
    :cond_e
    iget p1, p0, Lde/innosystec/unrar/rarfile/g;->m:I

    invoke-direct {p0, p1}, Lde/innosystec/unrar/rarfile/g;->a(I)Ljava/util/Date;

    move-result-object p1

    iput-object p1, p0, Lde/innosystec/unrar/rarfile/g;->x:Ljava/util/Date;

    return-void
.end method

.method private a(I)Ljava/util/Date;
    .locals 4

    .line 1
    invoke-static {}, Ljava/util/Calendar;->getInstance()Ljava/util/Calendar;

    move-result-object v0

    ushr-int/lit8 v1, p1, 0x19

    add-int/lit16 v1, v1, 0x7bc

    const/4 v2, 0x1

    .line 2
    invoke-virtual {v0, v2, v1}, Ljava/util/Calendar;->set(II)V

    ushr-int/lit8 v1, p1, 0x15

    and-int/lit8 v1, v1, 0xf

    sub-int/2addr v1, v2

    const/4 v2, 0x2

    .line 3
    invoke-virtual {v0, v2, v1}, Ljava/util/Calendar;->set(II)V

    ushr-int/lit8 v1, p1, 0x10

    and-int/lit8 v1, v1, 0x1f

    const/4 v3, 0x5

    .line 4
    invoke-virtual {v0, v3, v1}, Ljava/util/Calendar;->set(II)V

    ushr-int/lit8 v1, p1, 0xb

    and-int/lit8 v1, v1, 0x1f

    const/16 v3, 0xb

    .line 5
    invoke-virtual {v0, v3, v1}, Ljava/util/Calendar;->set(II)V

    ushr-int/lit8 v1, p1, 0x5

    and-int/lit8 v1, v1, 0x3f

    const/16 v3, 0xc

    .line 6
    invoke-virtual {v0, v3, v1}, Ljava/util/Calendar;->set(II)V

    and-int/lit8 p1, p1, 0x1f

    mul-int/lit8 p1, p1, 0x2

    const/16 v1, 0xd

    .line 7
    invoke-virtual {v0, v1, p1}, Ljava/util/Calendar;->set(II)V

    .line 8
    invoke-virtual {v0}, Ljava/util/Calendar;->getTime()Ljava/util/Date;

    move-result-object p1

    return-object p1
.end method


# virtual methods
.method public A()Z
    .locals 1

    .line 1
    iget-short v0, p0, Lde/innosystec/unrar/rarfile/b;->e:S

    and-int/lit16 v0, v0, 0x200

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public l()I
    .locals 1

    .line 1
    iget v0, p0, Lde/innosystec/unrar/rarfile/g;->l:I

    return v0
.end method

.method public m()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/rarfile/g;->t:Ljava/lang/String;

    return-object v0
.end method

.method public n()Ljava/lang/String;
    .locals 1

    .line 1
    iget-object v0, p0, Lde/innosystec/unrar/rarfile/g;->u:Ljava/lang/String;

    return-object v0
.end method

.method public o()J
    .locals 2

    .line 1
    iget-wide v0, p0, Lde/innosystec/unrar/rarfile/g;->y:J

    return-wide v0
.end method

.method public p()J
    .locals 2

    .line 1
    iget-wide v0, p0, Lde/innosystec/unrar/rarfile/g;->z:J

    return-wide v0
.end method

.method public q()B
    .locals 1

    .line 1
    iget-byte v0, p0, Lde/innosystec/unrar/rarfile/g;->o:B

    return v0
.end method

.method public r()B
    .locals 1

    .line 1
    iget-byte v0, p0, Lde/innosystec/unrar/rarfile/g;->n:B

    return v0
.end method

.method public s()Z
    .locals 1

    .line 1
    iget-short v0, p0, Lde/innosystec/unrar/rarfile/b;->e:S

    and-int/lit16 v0, v0, 0x400

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public t()Z
    .locals 2

    .line 1
    iget-short v0, p0, Lde/innosystec/unrar/rarfile/b;->e:S

    const/16 v1, 0xe0

    and-int/2addr v0, v1

    if-ne v0, v1, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public toString()Ljava/lang/String;
    .locals 1

    .line 1
    invoke-super {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public u()Z
    .locals 1

    .line 1
    iget-short v0, p0, Lde/innosystec/unrar/rarfile/b;->e:S

    and-int/lit8 v0, v0, 0x4

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public v()Z
    .locals 2

    .line 1
    sget-object v0, Lde/innosystec/unrar/rarfile/UnrarHeadertype;->FileHeader:Lde/innosystec/unrar/rarfile/UnrarHeadertype;

    iget-byte v1, p0, Lde/innosystec/unrar/rarfile/b;->d:B

    invoke-virtual {v0, v1}, Lde/innosystec/unrar/rarfile/UnrarHeadertype;->equals(B)Z

    move-result v0

    return v0
.end method

.method public w()Z
    .locals 1

    .line 1
    iget-short v0, p0, Lde/innosystec/unrar/rarfile/b;->e:S

    and-int/lit16 v0, v0, 0x100

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public x()Z
    .locals 1

    .line 1
    iget-short v0, p0, Lde/innosystec/unrar/rarfile/b;->e:S

    and-int/lit8 v0, v0, 0x10

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public y()Z
    .locals 1

    .line 1
    iget-short v0, p0, Lde/innosystec/unrar/rarfile/b;->e:S

    and-int/lit8 v0, v0, 0x2

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    goto :goto_0

    :cond_0
    const/4 v0, 0x0

    :goto_0
    return v0
.end method

.method public z()Z
    .locals 2

    .line 1
    iget-short v0, p0, Lde/innosystec/unrar/rarfile/b;->e:S

    const/4 v1, 0x1

    and-int/2addr v0, v1

    if-eqz v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method
